package org.xworker.model;

import org.xmeta.ActionContext;
import org.xmeta.Thing;

public class MyAction {
    public static int add(ActionContext actionContext) {
        Thing self = actionContext.getObject("self");

        int x = self.doAction("getX", actionContext);
        int y = self.doAction("getY", actionContext);

        return x + y;
    }
}
